Mouse input is accepted on all platforms (on mobile devices it is accepted as a single touch. If you need to use multi-touch, you should be using the device specific functions) and has a number of constants that are used to specify the buttons being pressed. These constants are shown in the following table:
Constant | Description |
---|---|
mb_left | The left mouse button |
mb_middle | The middle mouse button (this may not be valid for all target platforms) |
mb_right | The right mouse button |
mb_none | No mouse button |
mb_any | Any of the mouse buttons |
The following functions exist for the standard mouse button
controls:
Note that there are also a set of window functions related to using the mouse on desktop targets: